//
//  CloudBL.h
//  APIDemo
//
//  Created by 宣佚 on 15/6/1.
//  Copyright (c) 2015年 Andon Health Co,.Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DataModels.h"

@interface CloudBL : NSObject

/**
 *  申请智能控注册验证码 ，对应API 1
 *
 *  @param Phone   申请手机
 *  @param success 成功返回 
 *  @param failure 失败返回
 */
+(void)GetRegisterVerityCode_Phone:(NSString *)Phone
                           success:(void (^)(void))success
                           failure:(void (^)(NSString *errorMessage))failure;
/**
 *  申请手机注册验证码 ，对应API 2
 *
 *  @param Phone   申请手机
 *  @param Code    申请手机验证码
 *  @param success 成功返回 BOOL
 *  @param failure 失败返回
 */
+(void)VerityRegisterCode_Phone:(NSString *)Phone
                           Code:(NSString *)Code
                        success:(void (^)(BOOL VerityisSuccess))success
                        failure:(void (^)(NSString *errorMessage))failure;

/**
 *  申请手机注册验证码 ，对应API 3
 *
 *  @param Phone     申请手机
 *  @param Code      申请手机验证码
 *  @param Password  申请手机密码
 *  @param success   成功返回
 *  @param failure   失败返回
 */
+(void)RegisterUser_Phone:(NSString *)Phone
                     Code:(NSString *)Code
                 Password:(NSString *)Password
                  success:(void (^)(NSString *iDentity, Token *token))success
                  failure:(void (^)(NSString *errorMessage))failure;

@end
